import 'package:factoryside/generated/json/base/json_convert_content.dart';
import 'package:factoryside/generated/json/base/json_field.dart';

class OrderDetailEntity with JsonConvert<OrderDetailEntity> {
	@JSONField(name: "OrderID")
	int orderID;
	@JSONField(name: "OrderNumber")
	String orderNumber;
	@JSONField(name: "State")
	String state;
	@JSONField(name: "StateHtml")
	String stateHtml;
	@JSONField(name: "CreateDate")
	dynamic createDate;
	@JSONField(name: "UserName")
	String userName;
	@JSONField(name: "Address")
	String address;
	@JSONField(name: "FullAddress")
	String fullAddress;
	@JSONField(name: "Phone")
	String phone;
	@JSONField(name: "SparePhone")
	String sparePhone;
	@JSONField(name: "Guarantee")
	String guarantee;
	@JSONField(name: "TypeName")
	String typeName;
	@JSONField(name: "TypeID")
	int typeID;
	@JSONField(name: "UserID")
	String userID;
	@JSONField(name: "SendUser")
	String sendUser;
	@JSONField(name: "RelationOrderID")
	int relationOrderID;
	@JSONField(name: "ProvinceCode")
	String provinceCode;
	@JSONField(name: "CityCode")
	String cityCode;
	@JSONField(name: "AreaCode")
	String areaCode;
	@JSONField(name: "DistrictCode")
	String districtCode;
	@JSONField(name: "IsMessage")
	bool isMessage;
	@JSONField(name: "ThirdPartyOrderNumber")
	String thirdPartyOrderNumber;
	@JSONField(name: "OrderProductModels")
	List<OrderDetailOrderProductModel> orderProductModels;
	@JSONField(name: "MasterInfo")
	OrderDetailMasterInfo masterInfo;
}

class OrderDetailOrderProductModel with JsonConvert<OrderDetailOrderProductModel> {
	@JSONField(name: "CategoryName")
	String categoryName;
	@JSONField(name: "SubCategoryName")
	String subCategoryName;
	@JSONField(name: "ProductType")
	String productType;
	@JSONField(name: "ProdModelName")
	String prodModelName;
	@JSONField(name: "BrandName")
	String brandName;
	@JSONField(name: "Memo")
	String memo;
	@JSONField(name: "Num")
	int num;
	@JSONField(name: "OrderProdcutID")
	int orderProdcutID;
	@JSONField(name: "SubCategoryID")
	int subCategoryID;
	@JSONField(name: "ProductTypeID")
	int productTypeID;
	@JSONField(name: "BrandID")
	int brandID;
	@JSONField(name: "ProdModelID")
	int prodModelID;
	@JSONField(name: "FactoryBarCode")
	String factoryBarCode;
	@JSONField(name: "BuyingProductsTime")
	dynamic buyingProductsTime;
	@JSONField(name: "ExpressNo")
	String expressNo;
}

class OrderDetailMasterInfo with JsonConvert<OrderDetailMasterInfo> {
	@JSONField(name: "TrueName")
	String trueName;
	@JSONField(name: "Avator")
	String avator;
	@JSONField(name: "TopRank")
	String topRank;
	@JSONField(name: "UserID")
	String userID;
}
